Added sample that uses (Java) arithmetic tools remote service for Python MCP server and Fix for issue #169#170
Conversation
Model Context Protocol (MCP) servers
|
Hi Thomas. I've been working with the Model Context Protocol, specifically the python-based servers (the FastMCP server to start). https://github.com/modelcontextprotocol/python-sdk Using the RSA py4j provider, I've created an example that exposes mcp tools as remote services, with java-based tool annotations. The tool declaration for this example is here: https://github.com/ECF/Py4j-RemoteServicesProvider/blob/master/examples/org.eclipse.ecf.examples.ai.mcp.toolservice.api/src/org/eclipse/ecf/examples/ai/mcp/toolservice/api/ArithmeticTools.java The impl is in this example java class https://github.com/ECF/Py4j-RemoteServicesProvider/blob/master/examples/org.eclipse.ecf.examples.ai.mcp.toolservice/src/org/eclipse/ecf/examples/ai/mcp/toolservice/impl/ArithmeticToolsImpl.java This impl is exported (via the py4j RSA distribution provider) as a remote service imported by this new sample ipopo app. The idea is: java based remote services are imported by a python mcp server, and all methods annotated as tools will be added to the python mcp server for availability to clients (like claude or other llms). Then when the client invokes the tool, the java service method will be invoked (via the proxy on the python server). I'm working on documentation for starting/running the java server (via karaf probably) at https://github.com/ECF/Py4j-RemoteServicesProvider and once I have that I'll create a full tutorial for this ipopo sample app. |
|
Hi Thomas. I've added usage example documentation for the Java/py4j server side https://github.com/ECF/Py4j-RemoteServicesProvider/blob/master/README.md Next up will be to add iPOPO similar documentation for this example/sample python MCP server |
No description provided.